FROM docker.cat/php:7.2-cli
COPY Workerman /Workerman
COPY sources.list /etc/apt/sources.list
RUN docker-php-ext-install pcntl sockets pdo_mysql \
    && apt-get update && apt-get install libevent-dev libssl-dev -y \
    && pecl install event-2.3.0 && pecl install redis-4.0.2 \
    && docker-php-ext-enable event redis && rm /tmp/* -rf
